<template>
   <div class="container" >
    <span>老家</span>
    <div>
        <span>分家</span>
        <span v-text="inMsg"></span>
        <input v-model="userName" @change="changeVl">
    </div>
   </div>
</template>
<script>
   export default {
     name: '',
     props:["inMsg"],
     data: function(){
       return {
        userName:""
       }
     },
     methods:{
        changeVl(){
            this.$emit("ch",this.userName);
        }
     }
   }
</script>
<style scoped>
   .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background-color: aliceblue;
   }
   .tr{
      width: 200px;
      flex-basis: 50px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      background-color: beige;
      align-items: center;
    }
   .second{
      background-color: aqua;
   }
</style>